﻿package mortal.game.view.mainUI.shortcutbar
{
    import com.mui.controls.*;
    import com.mui.manager.*;
    import flash.display.*;
    import mortal.mvc.interfaces.*;

    public class ShortcutBarBase extends GUIComponent implements IDragDrop, IView, ILayer
    {

        public function ShortcutBarBase()
        {
            return;
        }// end function

        public function get dragSource() : Object
        {
            return null;
        }// end function

        public function set dragSource(param1:Object) : void
        {
            return;
        }// end function

        public function get isDragAble() : Boolean
        {
            return false;
        }// end function

        public function get isDropAble() : Boolean
        {
            return false;
        }// end function

        public function get isThrowAble() : Boolean
        {
            return false;
        }// end function

        public function canDrop(param1:IDragDrop, param2:IDragDrop) : Boolean
        {
            return false;
        }// end function

        public function update(param1:Object, ... args) : void
        {
            return;
        }// end function

        public function hide() : void
        {
            return;
        }// end function

        public function show(param1:int = 0, param2:int = 0) : void
        {
            return;
        }// end function

        public function set layer(param1:ILayer) : void
        {
            return;
        }// end function

        public function get layer() : ILayer
        {
            return null;
        }// end function

        public function get isHide() : Boolean
        {
            return false;
        }// end function

        public function addPopUp(param1:DisplayObject, param2:Boolean = false) : void
        {
            if (param1 && this.contains(param1) == false)
            {
                this.addChild(param1);
            }
            return;
        }// end function

        public function centerPopup(param1:DisplayObject) : void
        {
            param1.x = (this.width - param1.width) / 2;
            param1.y = (this.height - param1.height) / 2;
            return;
        }// end function

        public function setPosition(param1:DisplayObject, param2:int, param3:int) : void
        {
            param1.x = param2;
            param1.y = param3;
            return;
        }// end function

        public function isTop(param1:DisplayObject) : Boolean
        {
            if (this.contains(param1))
            {
                return this.getChildIndex(param1) == (this.numChildren - 1);
            }
            return false;
        }// end function

        public function removePopup(param1:DisplayObject, param2:Boolean = true) : void
        {
            if (this.contains(param1))
            {
                this.removeChild(param1);
            }
            return;
        }// end function

        public function isPopup(param1:DisplayObject) : Boolean
        {
            return this.contains(param1);
        }// end function

        public function setTop(param1:DisplayObject) : void
        {
            if (this.contains(param1))
            {
                if (this.getChildIndex(param1) != (this.numChildren - 1))
                {
                    this.setChildIndex(param1, (this.numChildren - 1));
                }
            }
            return;
        }// end function

        override public function dispose(param1:Boolean = true) : void
        {
            super.dispose(param1);
            return;
        }// end function

    }
}
